package com.sakiko.audiobook.album.service;

import com.sakiko.audiobook.vo.album.TrackMediaInfoVo;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface VodService {

    /**
     * 上传声音
     *
     * @param file
     * @return
     */
    Map<String, Object> uploadTrack(MultipartFile file);

    /**
     * 获取声音媒体信息
     *
     * @param mediaFileId
     * @return
     */
    TrackMediaInfoVo getMediaInfo(@NotEmpty(message = "媒体字段Id不能为空") String mediaFileId);

    /**
     * 删除云点播中的声音
     *
     * @param mediaFileId
     */
    void delMediaInfo(String mediaFileId);
}
